/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.mes.base.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.modules.mes.base.entity.PrdBom;
import org.springblade.modules.mes.base.entity.PrdBomParam;
import org.springblade.modules.mes.base.entity.PrdBomStation;

import java.util.List;

/**
 * 产品BOM信息视图实体类
 *
 * @author BladeX
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PrdBomVO对象", description = "产品BOM信息")
public class PrdBomVO extends PrdBom {
	private static final long serialVersionUID = 1L;

	/**
	 * 物料名称
	 */
	private String materialName;

	/**
	 * 内部图号
	 */
	private String innerDrawingNo;
	/**
	 * 外部图号
	 */
	private String productDrawingNo;

	/**
	 * 规格
	 */
	private String specifications;

	/**
	 * 型号
	 */
	private String model;

	/**
	 * 计量单位编码
	 */
	private String unit;

	/**
	 * 产品工序名称
	 */
	private String prdProcedureName;

	/**
	 * 下级BOM列表
	 */
	private List<PrdBomVO> childPrdBomList;

	/**
	 * 下级BOM列表（树形展示用）
	 */
	private List<PrdBomVO> children;

	@TableField(exist = false)
	private Integer sources;
	@TableField(exist = false)
	private String designLossRate;
	@TableField(exist = false)
	private String designQuota;
	@TableField(exist = false)
	private String productId;
	@TableField(exist = false)
	private Integer isFirst;
	@ApiModelProperty(value = "产品类型")
	private String productType;
	@ApiModelProperty(value = "产品标识")
	private String productFlag;
	@ApiModelProperty(value = "物料id")
	private String materialId;

	@ApiModelProperty(value = "物料组名称")
	private String materialGroupName;
	@ApiModelProperty(value = "物料组编码")
	private String materialGroupNo;
	private List<String> materialTypes;
	@ApiModelProperty(value = "标箱数量")
	private String boxCounts;
	@ApiModelProperty(value = "条码特征值")
	private String labelCodeEigenvalue;
	@ApiModelProperty(value = "条码特征值1")
	private String labelCodeEigenvalue1;
	@ApiModelProperty(value = "条码特征值2")
	private String labelCodeEigenvalue2;
	@ApiModelProperty(value = "顶级通道号")
	private String topChannelNo;

	/**
	 * 是否为选配件,0:否,1:是
	 */
	@ApiModelProperty(value = "是否为选配件,0:否,1:是")
	private Integer isOptional;
	@ApiModelProperty(value = "总消耗")
	private int quotas;

	private List<PrdBomStation> childPrdBomStationList;
	private List<PrdBomParam> childPrdBomParamList;
}
